import { format } from "date-fns";
import ru from "date-fns/locale/ru";

export function getHoursList(): number[] {
  const arr = [];

  // eslint-disable-next-line
  for (let i = 0; i < 24; i++) {
    arr.push(i);
  }

  return arr;
}

export function getMinutesList(): number[] {
  const arr = [];

  // eslint-disable-next-line
  for (let i = 0; i < 60; i++) {
    arr.push(i);
  }

  return arr;
}

export enum Tab {
  start = "start",
  end = "end",
}

export function formatDate(d: Date, pattern: string): string {
  return format(d, pattern);
}
